package com.situ.day5.cal;

public class Add extends AbstractCal{

	public Add() {
		super();
	}

	public Add(int num1, int num2) {
		super(num1, num2);
	}

	@Override
	public int getResult() {
		//return super.getResult(); //super代表父类对象
		return num1 + num2;
	}
	
	public void show() {
		System.out.println("Add.show()");
	}
}
